
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGFresnelMaterial.h>
#include <OpenSG/OSGFresnelMaterialBase.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_FresnelMaterial_dump_overloads_0_2, dump, 0, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_FresnelMaterial()
{
    scope* osg_FresnelMaterialBase_scope = new scope(
    class_< osg::FresnelMaterialBase, bases< osg::ChunkMaterial > , boost::noncopyable >("FresnelMaterialBase", no_init)
//        .def_readonly("AmbientFieldMask", &osg::FresnelMaterialBase::AmbientFieldMask)
//        .def_readonly("DiffuseFieldMask", &osg::FresnelMaterialBase::DiffuseFieldMask)
//        .def_readonly("SpecularFieldMask", &osg::FresnelMaterialBase::SpecularFieldMask)
//        .def_readonly("ShininessFieldMask", &osg::FresnelMaterialBase::ShininessFieldMask)
//        .def_readonly("EmissionFieldMask", &osg::FresnelMaterialBase::EmissionFieldMask)
//        .def_readonly("TransparencyFieldMask", &osg::FresnelMaterialBase::TransparencyFieldMask)
//        .def_readonly("LitFieldMask", &osg::FresnelMaterialBase::LitFieldMask)
//        .def_readonly("ColorMaterialFieldMask", &osg::FresnelMaterialBase::ColorMaterialFieldMask)
//        .def_readonly("IndexFieldMask", &osg::FresnelMaterialBase::IndexFieldMask)
//        .def_readonly("ScaleFieldMask", &osg::FresnelMaterialBase::ScaleFieldMask)
//        .def_readonly("BiasFieldMask", &osg::FresnelMaterialBase::BiasFieldMask)
//        .def_readonly("ImageFieldMask", &osg::FresnelMaterialBase::ImageFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::FresnelMaterialBase::MTInfluenceMask)
        .def("getClassType", &osg::FresnelMaterialBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::FresnelMaterialBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::FresnelMaterialBase::*)() )&osg::FresnelMaterialBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::FresnelMaterialBase::*)() const)&osg::FresnelMaterialBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::FresnelMaterialBase::getContainerSize)
        //.def("getAmbient", (osg::Color3f& (osg::FresnelMaterialBase::*)() )&osg::FresnelMaterialBase::getAmbient, return_value_policy< copy_const_reference >())
        .def("getAmbient", (const osg::Color3f& (osg::FresnelMaterialBase::*)() const)&osg::FresnelMaterialBase::getAmbient, return_value_policy< copy_const_reference >())
        //.def("getDiffuse", (osg::Color3f& (osg::FresnelMaterialBase::*)() )&osg::FresnelMaterialBase::getDiffuse, return_value_policy< copy_const_reference >())
        .def("getDiffuse", (const osg::Color3f& (osg::FresnelMaterialBase::*)() const)&osg::FresnelMaterialBase::getDiffuse, return_value_policy< copy_const_reference >())
        //.def("getSpecular", (osg::Color3f& (osg::FresnelMaterialBase::*)() )&osg::FresnelMaterialBase::getSpecular, return_value_policy< copy_const_reference >())
        .def("getSpecular", (const osg::Color3f& (osg::FresnelMaterialBase::*)() const)&osg::FresnelMaterialBase::getSpecular, return_value_policy< copy_const_reference >())
        //.def("getShininess", (osg::Real32& (osg::FresnelMaterialBase::*)() )&osg::FresnelMaterialBase::getShininess, return_value_policy< copy_const_reference >())
        .def("getShininess", (const osg::Real32& (osg::FresnelMaterialBase::*)() const)&osg::FresnelMaterialBase::getShininess, return_value_policy< copy_const_reference >())
        //.def("getEmission", (osg::Color3f& (osg::FresnelMaterialBase::*)() )&osg::FresnelMaterialBase::getEmission, return_value_policy< copy_const_reference >())
        .def("getEmission", (const osg::Color3f& (osg::FresnelMaterialBase::*)() const)&osg::FresnelMaterialBase::getEmission, return_value_policy< copy_const_reference >())
        //.def("getTransparency", (osg::Real32& (osg::FresnelMaterialBase::*)() )&osg::FresnelMaterialBase::getTransparency, return_value_policy< copy_const_reference >())
        .def("getTransparency", (const osg::Real32& (osg::FresnelMaterialBase::*)() const)&osg::FresnelMaterialBase::getTransparency, return_value_policy< copy_const_reference >())
        //.def("getLit", (bool& (osg::FresnelMaterialBase::*)() )&osg::FresnelMaterialBase::getLit, return_value_policy< copy_const_reference >())
        .def("getLit", (const bool& (osg::FresnelMaterialBase::*)() const)&osg::FresnelMaterialBase::getLit, return_value_policy< copy_const_reference >())
        //.def("getColorMaterial", (GLenum& (osg::FresnelMaterialBase::*)() )&osg::FresnelMaterialBase::getColorMaterial, return_value_policy< copy_const_reference >())
        .def("getColorMaterial", (const GLenum& (osg::FresnelMaterialBase::*)() const)&osg::FresnelMaterialBase::getColorMaterial, return_value_policy< copy_const_reference >())
        //.def("getIndex", (osg::Real32& (osg::FresnelMaterialBase::*)() )&osg::FresnelMaterialBase::getIndex, return_value_policy< copy_const_reference >())
        .def("getIndex", (const osg::Real32& (osg::FresnelMaterialBase::*)() const)&osg::FresnelMaterialBase::getIndex, return_value_policy< copy_const_reference >())
        //.def("getScale", (osg::Real32& (osg::FresnelMaterialBase::*)() )&osg::FresnelMaterialBase::getScale, return_value_policy< copy_const_reference >())
        .def("getScale", (const osg::Real32& (osg::FresnelMaterialBase::*)() const)&osg::FresnelMaterialBase::getScale, return_value_policy< copy_const_reference >())
        //.def("getBias", (osg::Real32& (osg::FresnelMaterialBase::*)() )&osg::FresnelMaterialBase::getBias, return_value_policy< copy_const_reference >())
        .def("getBias", (const osg::Real32& (osg::FresnelMaterialBase::*)() const)&osg::FresnelMaterialBase::getBias, return_value_policy< copy_const_reference >())
        //.def("getImage", (osg::ImagePtr& (osg::FresnelMaterialBase::*)() )&osg::FresnelMaterialBase::getImage, return_value_policy< copy_const_reference >())
        .def("getImage", (const osg::ImagePtr& (osg::FresnelMaterialBase::*)() const)&osg::FresnelMaterialBase::getImage, return_value_policy< copy_const_reference >())
        .def("setAmbient", &osg::FresnelMaterialBase::setAmbient)
        .def("setDiffuse", &osg::FresnelMaterialBase::setDiffuse)
        .def("setSpecular", &osg::FresnelMaterialBase::setSpecular)
        .def("setShininess", &osg::FresnelMaterialBase::setShininess)
        .def("setEmission", &osg::FresnelMaterialBase::setEmission)
        .def("setTransparency", &osg::FresnelMaterialBase::setTransparency)
        .def("setLit", &osg::FresnelMaterialBase::setLit)
        .def("setColorMaterial", &osg::FresnelMaterialBase::setColorMaterial)
        .def("setIndex", &osg::FresnelMaterialBase::setIndex)
        .def("setScale", &osg::FresnelMaterialBase::setScale)
        .def("setBias", &osg::FresnelMaterialBase::setBias)
        .def("setImage", &osg::FresnelMaterialBase::setImage)
        .def("getBinSize", &osg::FresnelMaterialBase::getBinSize)
        .def("copyToBin", &osg::FresnelMaterialBase::copyToBin)
        .def("copyFromBin", &osg::FresnelMaterialBase::copyFromBin)
        .def("create", &osg::FresnelMaterialBase::create)
        .def("createEmpty", &osg::FresnelMaterialBase::createEmpty)
        .def("shallowCopy", &osg::FresnelMaterialBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("LitFieldId") = (int)osg::FresnelMaterialBase::LitFieldId;
    scope().attr("IndexFieldId") = (int)osg::FresnelMaterialBase::IndexFieldId;
    scope().attr("EmissionFieldId") = (int)osg::FresnelMaterialBase::EmissionFieldId;
    scope().attr("ScaleFieldId") = (int)osg::FresnelMaterialBase::ScaleFieldId;
    scope().attr("NextFieldId") = (int)osg::FresnelMaterialBase::NextFieldId;
    scope().attr("ImageFieldId") = (int)osg::FresnelMaterialBase::ImageFieldId;
    scope().attr("BiasFieldId") = (int)osg::FresnelMaterialBase::BiasFieldId;
    scope().attr("ShininessFieldId") = (int)osg::FresnelMaterialBase::ShininessFieldId;
    scope().attr("DiffuseFieldId") = (int)osg::FresnelMaterialBase::DiffuseFieldId;
    scope().attr("ColorMaterialFieldId") = (int)osg::FresnelMaterialBase::ColorMaterialFieldId;
    scope().attr("SpecularFieldId") = (int)osg::FresnelMaterialBase::SpecularFieldId;
    scope().attr("TransparencyFieldId") = (int)osg::FresnelMaterialBase::TransparencyFieldId;
    scope().attr("AmbientFieldId") = (int)osg::FresnelMaterialBase::AmbientFieldId;

    delete osg_FresnelMaterialBase_scope;

    class_< osg::FresnelMaterial, bases< osg::FresnelMaterialBase > , boost::noncopyable, osg::FresnelMaterialRefPtr >("FresnelMaterial", no_init)
        .def("changed", &osg::FresnelMaterial::changed)
        .def("dump", &osg::FresnelMaterial::dump, osg_FresnelMaterial_dump_overloads_0_2())
        .def("makeState", &osg::FresnelMaterial::makeState)
        .def("rebuildState", &osg::FresnelMaterial::rebuildState)
        .def("isTransparent", &osg::FresnelMaterial::isTransparent)
        .def("setImage", &osg::FresnelMaterial::setImage)
    ;


    register_ptr_to_python<osg::FresnelMaterialPtr>();
    implicitly_convertible<osg::FresnelMaterialRefPtr, osg::FresnelMaterialPtr>();
    implicitly_convertible<osg::FresnelMaterialPtr, osg::MaterialPtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::FresnelMaterialPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::FresnelMaterialPtr>);
}

